﻿using System;
using System.Web.Mvc;
using MyPetShop.Service;

namespace Web.Areas.ItemSelect.Controllers
{
	/// <summary>
	/// Description of Item.
	/// </summary>
	public class ItemController : Controller
	{
		public ActionResult Index()
		{
			ProductItemService productItemService = new ProductItemService();
            ViewData["Item"] = productItemService.GetItem("EST-6");

            return View();
		}
		
		[HttpGet]
		public ActionResult Index(string Item)
		{
			ProductItemService productItemService = new ProductItemService();

            return View(productItemService.GetItem(Item));
		}
	}
}